Systems and methods of integrated testing and deployment in a continuous integration continuous deployment (cicd) system

ABSTRACT

Systems and methods are provided for receiving a code change at a continuous integration and continuous deployment (CICD) server system, generating a unique change identifier, generating a new code build which includes the code change, testing the generated new code build by performing a code trace for phase of testing or production environment based on at least one predetermined testing parameter that includes a predetermined trace time for the code change of the generated change identifier, and displaying test results for the change identifier for the phase of testing or production environment to visually highlight a pass or failure of the testing for the code change based on the predetermined testing parameter for the predetermined trace time.

BACKGROUND

Present distributed tracing systems allow for a user to viewvisualizations of how programming components in a user's systemcommunicate with each other. Such systems typically generate a“dependency map,” which can be displayed in a graph-like structurehaving nodes and pathways. Typically, a failure is displayed in the treestructure dependency map as the tree's root node, and relatedcontributing factors are displayed as leaf nodes. Such systems may showthe logical relationship between error events in the tree. Other presentsystems merely provide a listing of each step of a tracing operation,and provide times indicating how long each operation took to complete. Auser must review each step to determine whether there is a delay for oneor more operations of the system, or a failure of an operation.

BRIEF DESCRIPTION OF THE DRAWINGS

The accompanying drawings, which are included to provide a furtherunderstanding of the disclosed subject matter, are incorporated in andconstitute a part of this specification. The drawings also illustrateimplementations of the disclosed subject matter and together with thedetailed description explain the principles of implementations of thedisclosed subject matter. No attempt is made to show structural detailsin more detail than can be necessary for a fundamental understanding ofthe disclosed subject matter and various ways in which it can bepracticed.

FIGS. 1A-1C show a method of testing a code change for at least onephase of testing and visually highlighting the results of the testingaccording to an implementation of the disclosed subject matter.

FIGS. 2A-2C show a method of testing a code change for at least oneproduction environment and visually highlighting the results of thetesting according to an implementation of the disclosed subject matter.

FIG. 3A shows a display of a user interface that provides test resultsfor different test phases and deployment environments for each changeidentifier representing a code change according to an implementation ofthe disclosed subject matter.

FIG. 3B shows a display of a user interface that ranks changeidentifiers associated with a code change based on the test resultsaccording to an implementation of the disclosed subject matter.

FIG. 4 shows a detailed code trace timing display for a changeidentifier of a code change according to an implementation of thedisclosed subject matter.

FIG. 5 shows a continuous integration and continuous deployment serversystem according to an implementation of the disclosed subject matter.

FIG. 6 shows a computer system according to an implementation of thedisclosed subj ect matter.

FIG. 7 show a network configuration according to an implementation ofthe disclosed subject matter.

DETAILED DESCRIPTION

Various aspects or features of this disclosure are described withreference to the drawings, wherein like reference numerals are used torefer to like elements throughout. In this specification, numerousdetails are set forth in order to provide a thorough understanding ofthis disclosure. It should be understood, however, that certain aspectsof disclosure can be practiced without these specific details, or withother methods, components, materials, etc. In other instances,well-known structures and devices are shown in block diagram form tofacilitate describing the subject disclosure.

Implementations of the disclosed subject matter include a continuousintegration continuous deployment (CICD) server system that providesintegrated code testing, version control, deployment, distributedtracing, and visualization of test results of code builds having one ormore code changes. Change identifiers (Change IDs) may be generated totrack code changes (e.g., new portions of code) that may be used to forma new code build. Instrumentation libraries and distributed tracingsystems of the CICD server system may be used to provide different testphases (e.g., unit tests, integration tests, deployment tests, and thelike) for the code changes and/or the new code build, and may be used totest and/or monitor the operation of the deployed new code build for oneor more production environments (e.g., different data center locationsand the like). The tests may be for one or more predetermined criteria(e.g., trace time or the like) to determine a pass/fail status. A userinterface system may provide a visualization of a test result (e.g.,pass/fail, timing, etc.) for each change identifier and each test phase,as well as for each production environment if the code has beendeployed.

In some implementations, code to be changed can be identified using thesystems and methods disclosed in the patent application entitled“Systems and Methods of Injecting Fault Tree Analysis Data intoDistributed Tracing Visualizations,” which was filed in the U.S. Patentand Trademark Office on Aug. 29, 2018 as application Ser. No.16/115,801.

In some implementations, a rollback operation may be performed when anew code build that is deployed in one or more of the productionenvironments fails a test. In some implementations, the rollbackoperation may be performed for when any operational failure of the CICDserver system occurs. For example, a rollback operation may be performedwhen a failure of one or more hardware components of the CICD serversystem and/or a communications network failure is determined. Apredetermined code may be used to restore operation of the code in theone or more production environments where the failure occurred.

The implementations of the disclosed subject matter provided herein maybe used to test code updates for one or more test phases of amulti-tenant database system, and/or to monitor the operation of thecode updates that are deployed in one or more production environments(e.g., one or more data center locations which may be located indifferent geographic regions). In some implementations, the codechanges, new code builds, rollback operation code, code versions, and/ortest results may be stored in a multi-tenant database system. Forexample, in such a multi-tenant database system, different developersmay have access to one or more tenants to test code changes and new codebuilds, and/or deploy and monitor new code builds in productionenvironments associated with a tenant.

Current distributed tracing systems may gather timing data needed totroubleshoot latency problems, where applications may report the timingdata to such systems. Typically, the trace may be displayed as a list ofoperations, which may be difficult and time consuming for a user todetermine where a failure occurred. Some systems may display adependency diagram showing how many traced requests went through eachapplication, and some systems may display a percentage of the totaltrace time each span takes. The systems and methods of the disclosedsubject matter provide improvements over such present systems, as theyprovide for testing one or more code updates for unit tests, integrationtests, deployment tests, as well as monitoring the operation of deployedcode in multiple production environments (e.g., different datacenterlocations). Moreover, the systems and method of the disclosed subjectmatter provide visual indications of the pass or failure of the tests orproduction environment operations for the one or more code changesacross different production environments. With the implementations ofthe disclosed subject matter, developers may more easily determine whichphase of testing or which production environments an error occurred witha particular code change, and may implement rollback code to one or moreproduction environments so that such environments may be operational.

Other current systems provide fault tree analysis which may displayrepresentations of contributors to a failure (e.g., error events andpropagations). In such systems, the failure being analyzed may be thedisplayed tree's root node, and related contributing factors may bedisplayed leaf nodes to the tree. Such systems may show the logicalrelationship between error events in the tree. This representation islimited to showing that a fault may depend on several failures. The CICDserver systems of the disclosed subject matter differ from such faulttree systems in that a failure of the CICD server system does not causea failure in the overall system. That is, with the CICD server system ofthe disclosed subject matter, components that are identified as havingoperational problems may be updated and tested. This differs from faulttree analysis, which is directed to determine which components of asystem may cause failure, and assign probabilities of failure to thecomponents of the system. That is, the systems and methods of thedisclosed subject provide improvements over such present systems, asthey provide for testing one or more code updates for unit tests,integration tests, deployment tests, as well as monitoring the operationof deployed code in multiple production environments (e.g., differentdatacenter locations). Moreover, the systems and method of the disclosedsubject matter provide visual indications of the pass or failure of thetests or production environment operations for the one or more codechanges across different production environments. Again, with theimplementations of the disclosed subject matter, developers may moreeasily determine which phase of testing or which production environmentsan error occurred with a particular code change, and may implementrollback code to one or more production environments so that suchenvironments may be operational.

FIGS. 1A-1C show a method of testing a code change for at least onephase of testing and visually highlighting the results of the testingaccording to an implementation of the disclosed subject matter. FIG. 1Ashows a method 100 of testing code changes and/or a new code build at acontinuous integration and continuous deployment (CICD) server system,and displaying the results of the testing. At operation 110, a codechange may be received at the CICD server system (e.g., system 500 shownin FIG. 5 and discussed below). For example, a developer may make one ormore updates and/or changes to code. These code changes may betransmitted from the developer's computer (e.g., developer computer 502shown in FIG. 5 and/or second computer 800 shown in FIG. 6, or the like)to the CICD server system 500. At operation 120, the CICD server system500 may generate a unique change identifier (e.g., change identifier303, 304, 405, and/or 306 shown in FIG. 3A) for the received code changeat a version control system (e.g., version control system 504 shown inFIG. 5 and discussed in detail below). The CICD server 500 may generateunique change identifiers for each received code change (e.g., changeidentifier 303, 304, 405, and/or 306 shown in FIG. 3A). For example, ifa developer computer 502 transmits multiple code changes to the versioncontrol system 504 of the CICD system 500, the version control system504 may generate separate change identifiers for each code change.

At operation 130, the continuous integration system (e.g., continuousintegration system 506 shown in FIG. 5) may generate a new code buildwhich includes the code change. In some implementations, when aplurality of code changes are received by the CICD server system, theversion control system may generate and assign change identifiers foreach of the plurality of code changes, and the version control systemmay generate a single new code build with the received plurality of codechanges. In some implementations, one or more code changes may beintegrated into different code builds.

At operation 140, the CICD server system may test the generated new codebuild by performing a code trace for at least one phase of the testingusing an instrumentation library (e.g., instrumentation library 508 ofthe continuous integration system 506 shown in FIG. 5 and discussed indetail below) and distributed tracing system (e.g., distributed tracingsystem 514 shown in FIG. 5 and discussed below) of the CICD serversystem based on at least one predetermined testing parameter thatincludes a predetermined trace time for the code change of the generatedchange identifier. A test phase may include a unit test of the codechange (e.g., unit test 310 shown in FIG. 3A), an integration test ofthe code change (e.g., integration test 320 shown in FIG. 3A), and/or adeployment test of the code change (e.g., deployment test 330 shown inFIG. 3A). For example, the unit test may test an individual code changebefore it is included in a new code build. The integration test may testthe code change as part of the new code build. The deployment test maytest the operation of the code change and/or new code build in asimulated deployment environment before deploying the new code build ina production environment. The details of the one or more phases oftesting in operation 140 are discussed below in connection with FIG. 1B.The testing of new code builds for production environments are discussedbelow in connection with FIGS. 2A-2C.

The instrumentation library may automatically perform (e.g., withoutuser intervention or the like) the code trace to determine the start andend times of the trace of the code change of the change identifier. Atoperation 150, a display device of a user interface system (e.g., userinterface system 516 shown in FIG. 5 and/or display 620 shown in FIG. 6)of the CICD system may display test results for the change identifierfor the at least one phase of testing to visually highlight a pass orfailure of the testing for the code change based on the at least onepredetermined testing parameter for the predetermined trace time. Asdiscussed below in connection with FIG. 1A and FIG. 3A, a code changeand/or new code build that passes a phase of testing may be highlightedin a first color (e.g., green), and a code change and/or new code buildthat fails a phase of testing may be highlighted in a second color(e.g., red) so that a developer and/or user may more easily identifyproblems with the code change and/or new code build.

FIG. 1B shows a more detailed view of method 140 (shown in FIG. 1A anddescribed above) for testing the generated new code build by performinga code trace for at least one phase of the testing according to animplementation of the disclosed subject matter. At operation 141, thechange identifier and the at least one phase of the testing may betransmitted from the instrumentation library (e.g., instrumentationlibrary 508 shown in FIG. 5) to the distributed tracing system (e.g.,the distributed tracing system 514 shown in FIG. 5). At operation 142,the distributed tracing system may generate a trace identifier from thereceived change identifier. The trace identifier may be used for thepurposes of a trace for one phase of testing. That is, a code changethat is associated with a change identifier may have one or more traceidentifiers, depending on the phase of testing. For example, a differenttrace identifier may be generated for the same change identifier foreach phase of testing (e.g., different trace identifiers may begenerated for the unit test, integration test, and/or deployment test).This assignment of trace identifiers may allow for a user or developerto track the traces of code during one or more phases of testing.

At operation 143, the distributed tracing system may trace the new codebuild based on the generated trace identifier. At operation 144, thedistributed tracing system may determine a time taken per unit span ofthe new code build being traced. At operation 145, the distributedtracing system may determine the test results based on the passing orfailing of the testing of the code change based on the at least onepredetermined testing parameter for the predetermined trace time. Thetest results may be output to display 300 of the user interface, asdiscussed below in connection with FIG. 3A, and a ranking of the resultsmay be shown in display 360 of FIG. 3B and discussed below.

FIG. 1C shows a more detailed view of method 150 (shown in FIG. 1A) ofdisplay test results for the change identifier for the at least onephase of testing to visually highlight a pass or failure of the testingfor the code change based on the at least one predetermined testingparameter for the predetermined trace time according to animplementation of the disclosed subject matter. At operation 152, thetrace identifier, the determined time taken per unit span of the newcode build being traced, and the test results for the one or more testphases may be transmitted from the distributed tracing system to a userinterface (UI) system (e.g., user interface system 516 shown in FIG. 5)that includes the display device. At operation 154, the changeidentifier, the determined time taken per unit span, and the testresults for the at least one phase of testing to visually highlight thepass or failure of the code change may be displayed at the userinterface system based on the received trace identifier. An example ofthe user interface display (e.g. display 300 and/or display 360) isshown in FIGS. 3A-3B and discussed below. In some implementations, aranking of one or more components of the tested new code build based onthe test results on the display device may be displayed (e.g., indisplay 360 shown in FIG. 3B).

FIGS. 2A-2C show a method 200 of testing a code change and/or new codebuild for at least one production environment and visually highlightingthe results of the testing according to an implementation of thedisclosed subject matter. The at least one production environment may beone or more datacenters (e.g., which may be in different geographicallocations) in which the new code build may be deployed. The results ofthe code change and/or new code build testing for the at least oneproduction environment may be displayed on display 300 as productionenvironment test 340 shown in FIG. 3A and described below. The resultsof the testing may be used to rank the code changes and/or new codebuild as shown in display 360 shown in FIG. 3B.

At operation 210 shown in FIG. 2A, a deployment system (e.g., deploymentsystem 510 shown in FIG. 5) of the CICD server system (e.g., CICD serversystem 500) may receive the tested new code build. In someimplementations, the deployment system 510 may receive the tested newcode build from the continuous integration system 506, which may haveused the instrumentation library 508 to test the new code build for oneor more test phases. A new code build and/or code changes that pass thedifferent test phases may be provided to the deployment system 510 fordeployment and testing.

At operation 220, the distributed tracing system may generate a traceidentifier based on the received change identifier. Similar to operation142 of FIG. 1B, operation 220 may generate a trace identifier for thechange identifier for each production environment test. In someimplementations, a trace identifier may be generated for the same changeidentifier for each production environment test so as to monitor andtrack testing of the new code build.

At operation 230, the new code build may be tested for at least oneproduction environment based on the at least one predetermined testingparameter that includes the predetermined trace time for the code changeof the generated trace identifier using the instrumentation library(e.g., instrumentation library 512 shown in FIG. 5) and the distributedtracing system (e.g., distributed tracing system 514 shown in FIG. 5).The details of the testing operation 230 are discussed below inconnection with FIG. 2B.

At operation 240, the user interface system (e.g., the user interfacesystem 516 shown in FIG. 5) may display, based on the received traceidentifier, the change identifier, the determined time taken per unitspan, and the test results for the at least one production environmentto visually highlight the pass or failure of the code change (e.g.,production environment test 340 shown in FIG. 3A). The details of theoperation 240 are discussed below in connection with FIG. 2C.

Optionally, operation 250 of FIG. 2A may perform a rollback operationwhen the test results for the new code build in the one or moreproduction environments determines at least one failure using adeployment system (e.g., the deployment system 510 shown in FIG. 5) ofthe CICD server system. In some implementations, operation 250 mayperform the rollback operation for any failure (e.g., hardware failure,network failure, or the like) that is determined by the CICD serversystem. The rollback operation (e.g., operation 250) may deploy apredetermined previous code version for execution by the deploymentsystem.

FIG. 2B shows a more detailed view of method 230 (shown in FIG. 2A anddescribed above) for testing the generated new code build by performinga code trace for at least one production environment of the testingaccording to an implementation of the disclosed subject matter. Atoperation 231, a change identifier and one or more tags that identifythe at least one production environment may be transmitted from theinstrumentation library (e.g., instrumentation library 512 shown in FIG.5) to the distributed tracing system (e.g., distributed tracing system514 shown in FIG. 5). At operation 232, the distributed tracing systemmay generate a trace identifier from the received change identifier.

At operation 233 of FIG. 2B, the distributed tracing system may performa trace of the new code build based on the trace identifier and the oneor more tags. At operation 234, the distributed tracing system maydetermine the time taken per unit span of the new code build for the oneor more production environments. At operation 235, the distributedtracing system may determine the test results based on the passing orfailing of the testing of the code change based on the determined timetaken per unit span of the new code build for the one or more productionenvironments.

FIG. 2C shows a more detailed view of method 240 (shown in FIG. 2A) fordisplaying the change identifier, the determined time taken per unitspan, and the test results for the at least one production environmentto visually highlight the pass or failure of the code change accordingto an implementation of the disclosed subject matter. At operation 242,the trace identifier, the determined time taken per unit span, and thedetermined test results for the one or more production environments maybe transmitted to the user interface system (e.g., user interface system516 shown in FIG. 5). At operation 244, the display device of the userinterface system may display the change identifier, the determined timetake per unit span, and the determined test results for the one or moreproduction environments based on the trace identifier, such as par ofproduction environment tests 340 of display 300 shown in FIG. 3A anddiscussed below.

FIG. 3A shows a display 300 showing test results for different testphases and deployment environments for each change identifierrepresenting a code change and/or new code build according to animplementation of the disclosed subject matter. The display 300 may bedisplayed on a display device of the user interface 516 shown in FIG. 5.The display 300 may include a column display for the change identifier(change ID) 302. For example, as shown in display 300, the new codebuild may have four new code segments, each of which may be assigned achange identifier. That is, in the change identifier column 302 mayinclude change identifier 303 (e.g., “abcdef”) that may be assigned to afirst new code segment, change identifier 304 (e.g., “ghijkl”) that maybe assigned to a second new code segment, change identifier 305 (e.g.,“xyzabc”) that may be assigned to a third new code segment, and changeidentifier 306 (e.g., “qwerty”) that may be assigned to a fourth newcode segment.

The display 300 may include the test results for a unit test 310, anintegration test 320, and/or a deployment test 330, and the like. Thesetests may be part of the at least one phase test of method 100 shown inFIGS. 1A-1C and described above. The unit test 310 may display the testresults of a code change for a change identifier (e.g., before it isincluded in a new code build). The integration test 320 may display thetest results for the code change as part of the new code build. Thedeployment test 330 may display the test results for the code change aspart of a new code build, and its operation in a simulated deploymentenvironment before deploying the new code build in a productionenvironment.

For example, testing of the code change having the change identifier 303(“abcdef”) may have a trace time 312 (e.g., 50 seconds), which may beless that a predetermined trace time. In some implementations, the tracetime 312 for the change identifier 303 may be highlighted in a greencolor, or other suitable color, indicating that the trace time 312 isless than or equal to a predetermined trace time for the unit test 310.Similarly, unit test 310 may be displayed for change identifiers 304,305, and/or 306. In the example shown in display 300, the trace time 314for change identifier 304 and the trace time 318 for change identifier306 may pass the unit test 310, and may be highlighted to indicate thatthe unit test 310 has been passed. The trace time 316 for changeidentifier 305 may have a trace time that is greater that apredetermined trace time, and the display 300 may highlight the failureof the unit test 310. In some implementations, a test failure, such asthe failure of unit test 310 by the code change having the changeidentifier 305, may be highlighted to indicate the failure, such as byusing a red color.

The integration test 320 column of display 300 may show the test resultsfor the change identifiers 303, 304, 305, and/or 306. In the exampleshown in display 300, the change identifiers 303, 304 and 306 may behighlighted so as to indicate that the integration test 320 has beenpassed (e.g., with a green color). For change identifier 305, no resultis provided for the integration test 320, as the code change associatedwith change identifier 305 has not passed the previous test phase (i.e.,the unit test 310).

The deployment test 330 column of display 300 may show the test resultsfor the change identifiers 303, 304, 305, and/or 306. In the exampleshown in display 300, the change identifiers 303 and 304 may behighlighted so as to indicate that the deployment test 330 has beenpassed (e.g., with a green color). No result is provided for theintegration test 320 for change identifier 305, as the code changeassociated with change identifier 305 has not passed the unit test 310.For change identifier 306, the display 300 has highlighted thedeployment test result 338 as a failure, as the code change associatedwith the change identifier 306 may have trace time that is greater thata predetermined trace time. In some implementations, a test failure,such as the failure of unit test 330 by the code change having thechange identifier 306, may be highlighted to indicate the failure, suchas by using a red color.

The production environment test 340 column of display 300 may providetest results for different datacenters. The datacenters may be locatedin different geographical locations, such as, for example, Seattle,Tokyo, London, and the like. Time 342 column for production environmenttest 340 for the change identifier 303 may provide the test results fora trace time 344 for a first datacenter location (e.g., Seattle, or“SEA”), a trace time 345 for a second datacenter location (e.g., Tokyo,or “TYO”), and/or a trace time 346 (e.g., London, or “LON”). As shown indisplay 300, the trace times 344 and 345 for the “SEA” and “TYO”production environments may pass the production environment test 340 byhaving a trace time that is less than or equal to a predetermined tracetime.

The trace time 346 for the “LON” production environment may fail theproduction environment test, as it may have a trace time that is greaterthan the predetermined trace time for this code change having the changeidentifier 303. Trace time 346 may be highlighted (e.g., in a red color)to indicate the failure of the production environment test 340. In someimplementations, a rollback operation may be performed (e.g., asdescribed above in connection with operation 250 shown in FIG. 2A) whena test failure and/or other failure of the CICD server system isdetermined. The CICD server system 500 may use predetermined rollbackcode in the production environment for the “LON” datacenter to restoreoperation, and the production environment test 340 may be conducted forthe rollback code. Trace time 347 for rollback test 343 may indicatethat the rollback code for the change identifier 303 may pass, as it mayhave a rollback trace time that is less than or equal to a predeterminedtrace time. In some implementations, the pass result may be highlightedin a green color.

The production environment test 340 may be conducted for the new codebuild that includes the code change associated with the changeidentifier 304. As shown in display 300, the test results 350 for theproduction environment test 340 may indicate that the test may be passedfor each of the different datacenters (e.g., “SEA,” “TYO,” and “LON”).As the code changes associated with the change identifiers 305 and 306have not passed all of the test phases (e.g., unit test 310, integrationtest 320, and deployment test 330), the results 352 and 354 for theproduction environment test 340 may not appear.

FIG. 3B shows a display 360 which may be a ranking of the code changesby change identifier by the CICD server system 500. In someimplementations, the CICD server system may determine ranking by thenumber of phases of testing and/or production environments that a codechange and/or new code build has passed. As change identifier “ghijkl”may pass the unit test 310, integration test 320, and deployment test330, as well as passed the production environment test 340 without usinga rollback operation, this change identifier may be ranked first. Aschange identifier “abcdef” may pass the unit test 310, integration test320, and deployment test 330, as well as passed the productionenvironment test 340, but utilized a rollback operation, this changeidentifier may be ranked second. As change identifier “qwerty” may passthe unit test 310 and the integration test 320, but may have failed thedeployment test 330, this change identifier may be ranked third. Aschange identifier “xyzabc” may have failed the unit test 310, thischange identifier may be ranked fourth.

In some implementations, the ranking of the code changes by changeidentifier by the CICD server system 500 may be based on who is viewingthe ranking. For example, a developer may view the ranking of codechanges that the developer has worked on to determine their performance.In another example, a development manager may view ranking of codechanges that have been submitted by different developers to determinethe performance of the code changes by each of the different developers.That is, the development manager may determine which of the code changesis taking the longest to be deployed in a production environment.

FIG. 4 shows a detailed code trace timing display 400 for a changeidentifier of a code change according to an implementation of thedisclosed subject matter. Display 400 may be displayed on a displaydevice of the user interface 516 shown in FIG. 5. Display 400 may bedisplayed when a user of the CICD system 500 selects the trace time 344of the production environment test 340 for the Seattle (“SEA”)datacenter location to view timing information for one or more parts ofthe production environment test 340. In some implementations, some ofthe operations shown in display 400 may occur in parallel with oneanother.

As shown by the trace time 344 of FIG. 3A and the total deployment time402 shown in FIG. 4, the total trace time for the deployment of the codechange associated with the change identifier is 5 minutes and 3 seconds.As shown in display 400, the total deployment time 402 may include apackage download time 404 which may be 1 minute and 20 seconds. Thistime may be amount of time to download the code change and/or the newcode build associated with the change identifier 303. A packagevalidation time 406 may be 34 seconds. This may be the amount of time tovalidate the origin, authenticity, sender, or the like of code changeand/or the new code build associated with the change identifier 303.

A stop old package time 408 may be displayed on display 400, which maybe 51 seconds. This time may be the amount of time to stop the operationof the current code build operating in the production environment (e.g.,the code build operating in the Seattle datacenter). A start new packagetime 410 may display the amount of time to start the code change and/orthe new code build that was downloaded at operation 404 for a productionenvironment for a datacenter, which, in this example, may be 42 seconds.Display 400 may include a validate deployment time 412, which may be 33seconds. This time may be to validate that the code change and/or thenew code build has been deployed and is operational for a particularproduction environment (e.g., the Seattle datacenter).

Display 400 may show the interrelation and/or dependencies betweenparticular events, and their trace times. That is, the display 400 mayshow the interrelation and/or dependencies between the packages andtrace times for the package download time 404, the package validationtime 406, the stop old package time 408, the start new package time 410,and/or the validate deployment time 412.

FIG. 5 shows a continuous integration and continuous deployment (CICD)server system 500 according to an implementation of the disclosedsubject matter. For example, the CICD system 500 can be implemented on alaptop, a desktop, an individual server, a server cluster, a serverfarm, or a distributed server system, or can be implemented as a virtualcomputing device or system, or any suitable combination of physical andvirtual systems. For simplicity, various parts such as the processor,the operating system, and other components of the CICD server system 500are not shown. CICD server system 500 may include one or more servers,and may include one or more digital storage devices communicativelycoupled thereto, for the version control system 504, the continuousintegration system 506, the instrumentation libraries 508 and 512, thedeployment system 510, the distributed tracing system 514, and the userinterface system 516.

Developer computer 502 may be a desktop computer, a laptop computer, aserver, a tablet computing device, a wearable computing device, or thelike. In some implementations, the developer computer may be separatefrom CICD server system 500, and may be communicatively coupled to theCICD server system 500 via a wired and/or wireless communicationsnetwork. Developer computer 502 may provide one or more code changes tothe version control system 504.

The continuous integration system 506 may perform a new code build usingthe code change provided by the developer computer 502, and may generatea change identifier for each code change segment. The continuousintegration system 506 may manage the new code build, and the testing ofthe new code build. The version control system 504 may store one or moreversions of code built by the continuous integration system 506. Forexample, the version control system may store the versions of code instorage 810 of second computer 800 shown in FIG. 6, and/or in one ormore of the database systems 1200 a-1200 d shown in FIG. 7.

The instrumentation library 508 may manage the at least one phase oftesting of the new code build, which may include the unit test 310,integration test 320, and/or the deployment test 330 shown in FIG. 3Aand described above, and as also described and shown in connection withFIGS. 1A-1C. The deployment system 510 may manage the deployment of thenew code build that has been tested for the at least on test phase to atleast one production environment (e.g., one or more datacenters that maybe located at different geographic locations). The instrumentationlibrary 512 may manage the testing and/or monitoring of the deployed newcode build. In some implementations, the continuous integration system506 may manage a rollback operation when it is determined that changedcode and/or the deployed new code build fails a production environmenttest (e.g., based on information that may be received from theinstrumentation libraries 508, as described above in connection with therollback operation 250 shown in FIG. 2A and rollback 343 shown in FIG.3A). In some implementations, the continuous integration system 506 maymanage a rollback operation when any failure of the CICD server systemis determined (e.g., hardware failure, network failure, or the like).

The distributed tracing system 514 may determine timing information forone or more operations and/or records, which may be used to perform atrace operation for a code change and/or new code build for at least onephase of testing and/or deployment testing. The user interface system516 may display the results of the at least one phase of testing and thedeployment testing. The user interface system 516 may be monitoredand/or be accessible to the developer computer 502.

Implementations of the presently disclosed subject matter may beimplemented in and used with a variety of component and networkarchitectures. FIG. 6 is an example computer 600 suitable forimplementing implementations of the presently disclosed subject matter.As discussed in further detail herein, the computer 600 may be a singlecomputer in a network of multiple computers. As shown in FIG. 6, thecomputer 600 may communicate with a central or distributed component 700(e.g., server, cloud server, database, cluster, application server,etc.). The central component 700 may communicate with one or more othercomputers such as the second computer 800, which may include a storagedevice 810. The second computer 800 may be a server, cloud server, orthe like. The storage 810 may use any suitable combination of anysuitable volatile and non-volatile physical storage mediums, including,for example, hard disk drives, solid state drives, optical media, flashmemory, tape drives, registers, and random access memory, or the like,or any combination thereof.

In some implementations, the developer computer 502 shown in FIG.5 maybe the computer 600, and the version control system 504, continuousintegration system 506, instrumentation libraries 508 and 512, thedeployment system 510, the distributed tracing system 514 and the userinterface system 516 may be at least part of the central component 700and/or the second computer 800. In some implementations, the CICD serversystem 500 shown in FIG. 5 may be implemented on one or more of thecomputer 600, the central component 700, and/or the second computer 800.

Data for the CICD server system 500 may be stored in any suitable formatin, for example, the storage 810, using any suitable filesystem orstorage scheme or hierarchy. The stored data may be, for example, thechanged code, the new code build, one or more previous code builds, codefor rollback operations, test result data, and the like. For example,the storage 810 can store data using a log structured merge (LSM) treewith multiple levels. Further, if the systems shown in FIGS. 6-7 aremultitenant systems, the storage can be organized into separate logstructured merge trees for each instance of a database for a tenant. Forexample, multitenant systems may be used to manage a plurality ofdevelopers and/or code bases for version control and/or deployment.Alternatively, contents of all records on a particular server or systemcan be stored within a single log structured merge tree, in which caseunique tenant identifiers associated with versions of records can beused to distinguish between data for each tenant as disclosed herein.More recent transactions (e.g., code updates, new code builds, rollbackcode, test result data, and the like) can be stored at the highest ortop level of the tree and older transactions can be stored at lowerlevels of the tree. Alternatively, the most recent transaction orversion for each record (i.e., contents of each record) can be stored atthe highest level of the tree and prior versions or prior transactionsat lower levels of the tree.

The information obtained to and/or from a central component 700 can beisolated for each computer such that computer 600 cannot shareinformation with computer 800 (e.g., for security and/or testingpurposes). Alternatively, or in addition, computer 600 can communicatedirectly with the second computer 800.

The computer (e.g., user computer, enterprise computer, etc.) 600 mayinclude a bus 610 which interconnects major components of the computer600, such as a central processor 640, a memory 670 (typically RAM, butwhich can also include ROM, flash RAM, or the like), an input/outputcontroller 680, a user display 620, such as a display or touch screenvia a display adapter, a user input interface 660, which may include oneor more controllers and associated user input or devices such as akeyboard, mouse, Wi-Fi/cellular radios, touchscreen, microphone/speakersand the like, and may be communicatively coupled to the I/O controller680, fixed storage 630, such as a hard drive, flash storage, FibreChannel network, SAN device, SCSI device, and the like, and a removablemedia component 650 operative to control and receive an optical disk,flash drive, and the like.

The bus 610 may enable data communication between the central processor640 and the memory 670, which may include read-only memory (ROM) orflash memory (neither shown), and random access memory (RAM) (notshown), as previously noted. The RAM may include the main memory intowhich the operating system, development software, testing programs, andapplication programs are loaded. The ROM or flash memory can contain,among other code, the Basic Input-Output system (BIOS) which controlsbasic hardware operation such as the interaction with peripheralcomponents. Applications resident with the computer 600 may be stored onand accessed via a computer readable medium, such as a hard disk drive(e.g., fixed storage 630), an optical drive, floppy disk, or otherstorage medium 650.

The fixed storage 630 can be integral with the computer 600 or can beseparate and accessed through other interfaces. The fixed storage 630may be part of a storage area network (SAN). A network interface 690 canprovide a direct connection to a remote server via a telephone link, tothe Internet via an internet service provider (ISP), or a directconnection to a remote server via a direct network link to the Internetvia a POP (point of presence) or other technique. The network interface690 can provide such connection using wireless techniques, includingdigital cellular telephone connection, Cellular Digital Packet Data(CDPD) connection, digital satellite data connection or the like. Forexample, the network interface 690 may enable the computer tocommunicate with other computers and/or storage devices via one or morelocal, wide-area, or other networks, as shown in FIGS. 5-7.

Many other devices or components (not shown) may be connected in asimilar manner (e.g., the CICD server system 500 shown in FIG. 5, datacache systems, application servers, communication network switches,firewall devices, authentication and/or authorization servers, computerand/or network security systems, and the like). Conversely, all thecomponents shown in FIGS. 6-7 need not be present to practice thepresent disclosure. The components can be interconnected in differentways from that shown. Code to implement the present disclosure (e.g.,for the CICD server system 500 and the like) can be stored incomputer-readable storage media such as one or more of the memory 670,fixed storage 630, removable media 650, or on a remote storage location.

FIG. 7 shows an example network arrangement according to animplementation of the disclosed subject matter. Four separate databasesystems 1200 a-d at different nodes in the network represented by cloud1202 communicate with each other through networking links 1204 and withusers (not shown). The database systems 1200 a-d may be, for example,different production environments of the CICD server system 500 thatcode changes may be tested for and that may deploy new code builds. Insome implementations, the one or more of the database systems 1200 a-dmay be located in different geographic locations. Each of databasesystems 1200 can be operable to host multiple instances of a database(e.g., that may store code changes, new code builds, rollback code,testing data, and the like), where each instance is accessible only tousers associated with a particular tenant. Each of the database systemscan constitute a cluster of computers along with a storage area network(not shown), load balancers and backup servers along with firewalls,other security systems, and authentication systems. Some of theinstances at any of systems 1200 may be live or production instancesprocessing and committing transactions received from users and/ordevelopers, and/or from computing elements (not shown) for receiving andproviding data for storage in the instances.

One or more of the database systems 1200 a-d may include at least onestorage device, such as in FIG. 6. For example, the storage can includememory 670, fixed storage 630, removable media 650, and/or a storagedevice included with the central component 700 and/or the secondcomputer 800. The tenant can have tenant data stored in an immutablestorage of the at least one storage device associated with a tenantidentifier.

In some implementations, the one or more servers shown in FIGS. 6-7 canstore the data (e.g., code changes, new code builds, rollback code, testresults and the like) in the immutable storage of the at least onestorage device (e.g., a storage device associated with central component700, the second computer 800, and/or the database systems 1200 a-1200 d)using a log-structured merge tree data structure.

The systems and methods of the disclosed subject matter can be forsingle tenancy and/or multitenancy systems. Multitenancy systems canallow various tenants, which can be, for example, developers, users,groups of users, or organizations, to access their own records (e.g.,code changes, new code builds, code build versions, test results, andthe like) on the server system through software tools or instances onthe server system that can be shared among the various tenants. Thecontents of records for each tenant can be part of a database containingthat tenant. Contents of records for multiple tenants can all be storedtogether within the same database, but each tenant can only be able toaccess contents of records which belong to, or were created by, thattenant. This may allow a database system to enable multitenancy withouthaving to store each tenants' contents of records separately, forexample, on separate servers or server systems. The database for atenant can be, for example, a relational database, hierarchicaldatabase, or any other suitable database type. All records stored on theserver system can be stored in any suitable structure, including, forexample, an LSM tree.

Further, a multitenant system can have various tenant instances onserver systems distributed throughout a network with a computing systemat each node. The live or production database instance of each tenantmay have its transactions processed at one computer system. Thecomputing system for processing the transactions of that instance mayalso process transactions of other instances for other tenants.

Some portions of the detailed description are presented in terms ofdiagrams or algorithms and symbolic representations of operations ondata bits within a computer memory. These diagrams and algorithmicdescriptions and representations are commonly used by those skilled inthe data processing arts to most effectively convey the substance oftheir work to others skilled in the art. An algorithm is here andgenerally, conceived to be a self-consistent sequence of steps leadingto a desired result. The steps are those requiring physicalmanipulations of physical quantities. Usually, though not necessarily,these quantities take the form of electrical or magnetic signals capableof being stored, transferred, combined, compared and otherwisemanipulated. It has proven convenient at times, principally for reasonsof common usage, to refer to these signals as bits, values, elements,symbols, characters, terms, numbers, or the like.

It should be borne in mind, however, that all these and similar termsare to be associated with the appropriate physical quantities and aremerely convenient labels applied to these quantities. Unlessspecifically stated otherwise as apparent from the above discussion, itis appreciated that throughout the description, discussions utilizingterms such as “receiving,” “transmitting,” “modifying,” “sending,” orthe like, refer to the actions and processes of a computer system, orsimilar electronic computing device, that manipulates and transformsdata represented as physical (e.g., electronic) quantities within thecomputer system's registers and memories into other data similarlyrepresented as physical quantities within the computer system memoriesor registers or other such information storage, transmission or displaydevices.

More generally, various implementations of the presently disclosedsubject matter can include or be implemented in the form ofcomputer-implemented processes and apparatuses for practicing thoseprocesses. Implementations also can be implemented in the form of acomputer program product having computer program code containinginstructions implemented in non-transitory and/or tangible media, suchas floppy diskettes, CD-ROMs, hard drives, USB (universal serial bus)drives, or any other machine readable storage medium, wherein, when thecomputer program code is loaded into and executed by a computer, thecomputer becomes an apparatus for practicing implementations of thedisclosed subject matter. Implementations also can be implemented in theform of computer program code, for example, whether stored in a storagemedium, loaded into and/or executed by a computer, or transmitted oversome transmission medium, such as over electrical wiring or cabling,through fiber optics, or via electromagnetic radiation, wherein when thecomputer program code is loaded into and executed by a computer, thecomputer becomes an apparatus for practicing implementations of thedisclosed subject matter. When implemented on a general-purposemicroprocessor, the computer program code segments configure themicroprocessor to create specific logic circuits. In someconfigurations, a set of computer-readable instructions stored on acomputer-readable storage medium can be implemented by a general-purposeprocessor, which can transform the general-purpose processor or a devicecontaining the general-purpose processor into a special-purpose deviceconfigured to implement or carry out the instructions. Implementationscan be implemented using hardware that can include a processor, such asa general purpose microprocessor and/or an Application SpecificIntegrated Circuit (ASIC) that implements all or part of the techniquesaccording to implementations of the disclosed subject matter in hardwareand/or firmware. The processor can be coupled to memory, such as RAM,ROM, flash memory, a hard disk or any other device capable of storingelectronic information. The memory can store instructions adapted to beexecuted by the processor to perform the techniques according toimplementations of the disclosed subject matter.

The foregoing description, for purpose of explanation, has beendescribed with reference to specific implementations. However, theillustrative discussions above are not intended to be exhaustive or tolimit implementations of the disclosed subject matter to the preciseforms disclosed. Many modifications and variations are possible in viewof the above teachings. The implementations were chosen and described toexplain the principles of implementations of the disclosed subjectmatter and their practical applications, to thereby enable othersskilled in the art to utilize those implementations as well as variousimplementations with various modifications as can be suited to theparticular use contemplated.

1. A method comprising: receiving a code change at a server; generatinga unique change identifier for the received code change at a versioncontrol system of the server; generating, at a continuous integrationsystem of the server, a new code build which includes the code change;testing, at the server, the generated new code build by performing acode trace based on at least one predetermined testing parameter thatincludes a predetermined trace time for the code change of the generatedchange identifier by performing the code trace to determine the startand end times of the trace of the code change of the change identifier;and displaying, on a display device coupled to the server, test resultsfor the change identifier for the at least one phase of testing tovisually highlight a pass or failure of the testing for the code changebased on the at least one predetermined testing parameter for thepredetermined trace time.
 2. The method of claim 1, further comprising:generating, at the server, a trace identifier based on the changeidentifier; tracing, at the server, the new code build based on thegenerated trace identifier; determining, at the server, a time taken perunit span of the new code build being traced; and determining, at theserver, the test results based on the passing or failing of the testingof the code change based on the at least one predetermined testingparameter for the predetermined trace time.
 3. The method of claim 2,wherein the displaying comprises: displaying, at the display devicebased on the trace identifier, the change identifier, the determinedtime taken per unit span, and the test results for the at least onephase of testing to visually highlight the pass or failure of the codechange.
 4. The method of claim 1, further comprising: receiving, at theserver system, the tested new code build; generating, at the server, atrace identifier from the change identifier; and testing, at the server,the new code build for at least one production environment based on theat least one predetermined testing parameter that includes thepredetermined trace time for the code change of the generated traceidentifier; wherein the displaying comprises: displaying, based on thetrace identifier, the change identifier, the determined time taken perunit span, and the test results for the at least one productionenvironment to visually highlight the pass or failure of the codechange.
 5. The method of claim 4, further comprising: performing, at theserver system, a rollback operation when the test results for the newcode build in the one or more production environments determines atleast one failure, wherein the rollback operation deploys apredetermined previous code version for execution by the deploymentsystem.
 6. The method of claim 4, further comprising: generating, at theserver, a trace identifier from a change identifier; performing a trace,at the server, of the new code build based on the trace identifier andthe one or more tags; determining, at the server, the time taken perunit span of the new code build for the one or more productionenvironments; and determining, at the server, the test results based onthe passing or failing of the testing of the code change based on thedetermined time taken per unit span of the new code build for the one ormore production environments.
 7. The method of claim 6, furthercomprising: displaying, on the display device, the change identifier,the determined time take per unit span, and the determined test resultsfor the one or more production environments based on the traceidentifier.
 8. The method of claim 1, further comprising: displaying, onthe display device, a ranking of one or more components of the testednew code build based on the test results.
 9. A system comprising: aserver to receive a code change to generate a unique change identifierfor the received code change, generate a new code build which includedthe code change, wherein the server tests the generated new code buildby performing a code trace for at least one phase of the testing basedon at least one predetermined testing parameter that includes apredetermined trace time for the code change of the generated changeidentifier, to perform the code trace to determine the start and endtimes of the trace of the code change of the change identifier, and adisplay device coupled to the server, to display test results for thechange identifier for that at least one phase of testing to visuallyhighlight a pass or failure of the testing for the code change based onthe at least one predetermined testing parameter for the predeterminedtrace time.
 10. The system of claim 9, wherein the server generates atrace identifier from the change identifier, traces the new code buildbased on the generated trace identifier, determines a time taken perunit span of the new code build being traced, and determines the testresults based on the passing or failing of the testing of the codechange based on the at least one predetermined testing parameter for thepredetermined trace time.
 11. The system of claim 10, furthercomprising: wherein the display device, based on the trace identifier,displays the change identifier, the determined time taken per unit span,and the test results for the at least one phase of testing to visuallyhighlight the pass or failure of the code change.
 12. The system ofclaim 9, wherein the server generates a trace identifier from thereceived change identifier, and tests the new code build for at leastone production environment based on the at least one predeterminedtesting parameter that includes the predetermined trace time for thecode change of the generated trace identifier, and wherein the displaydevice displays the change identifier, the determined time taken perunit span, and the test results for the at least one productionenvironment to visually highlight the pass or failure of the code changebased on the trace identifier.
 13. The system of claim 12, wherein theserver performs a rollback operation when the test results for the newcode build in the one or more production environments determines atleast one failure, wherein the rollback operation deploys apredetermined previous code version for execution by the server.
 14. Thesystem of claim 12, wherein the server generates a trace identifier fromthe change identifier, performs a trace of the new code build based onthe trace identifier and the one or more tags, determines the time takenper unit span of the new code build for the one or more productionenvironments, and determines the test results based on the passing orfailing of the testing of the code change based on the determined timetaken per unit span of the new code build for the one or more productionenvironments.
 15. The system of claim 14, wherein the display devicedisplays the change identifier, the determined time take per unit span,and the determined test results for the one or more productionenvironments based on the trace identifier.
 16. The system of claim 9,wherein the display device displays a ranking of one or more componentsof the tested new code build based on the test results.